package cn.java.Concurrency;

import java.util.concurrent.Callable;

/**
 * @author 小石潭记
 * @date 2021/12/19 10:08
 * @Description: ${todo}
 */
public class MyCallable implements Callable<String> {

    private int age;

    public MyCallable(int age) {
        this.age = age;
    }

    @Override
    public String call() throws Exception {
        Thread.sleep(1000);
        return "返回值的年龄是:" + age;
    }
}
